Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guarantee the order of rules. #411

Closed
wants to merge 24 commits into from

Conversation

lostcharlie
Copy link
Member

@lostcharlie lostcharlie commented Sep 11, 2023

Extract constants and functions from iptables.go of agent, cloud-agent and connector to common module "iptables-helper".
Use iptables-restore to replace all rules instead of appending single rules.
Guarantee the order of rules by adding locks.

Extract constants.

Signed-off-by: Zhen Tang <[email protected]>
@lostcharlie lostcharlie reopened this Sep 11, 2023
Extract functions.

Signed-off-by: Zhen Tang <[email protected]>
@lostcharlie lostcharlie changed the title Refactoring. Refactoring. Extract constants and functions from iptables.go of agent, cloud-agent and connector. Sep 12, 2023
@lostcharlie lostcharlie changed the title Refactoring. Extract constants and functions from iptables.go of agent, cloud-agent and connector. Guarantee the order of rules. Sep 15, 2023
lostcharlie and others added 17 commits September 20, 2023 09:09
Replace usage in cloud-agent

Signed-off-by: Zhen Tang <[email protected]>
Move functions used in only one module. Move constants to common package.

Signed-off-by: Zhen Tang <[email protected]>
Signed-off-by: Zhen Tang <[email protected]>
Signed-off-by: Zhen Tang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants